//
//  MyStockForceTrace.m
//  Stock
//
//  Created by blacksun on 11-7-1.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "MyStockForceTrace.h"


@implementation MyStockForceTrace
@synthesize stockId;
@synthesize f3;
@synthesize f10;
@synthesize f60;
@synthesize fIn3;
@synthesize fIn10;
@synthesize fIn60;
@synthesize fOut3;
@synthesize fOut10;
@synthesize fOut60;
@synthesize turnover3;
@synthesize turnover10;
@synthesize turnover60;
@synthesize turnoverMoney3;
@synthesize turnoverMoney10;
@synthesize turnoverMoney60;
@synthesize fr3;
@synthesize fr10;
@synthesize fr60;



+(MyStockForceTrace *)findByStockId:(NSString *)stockId{
    if (!stockId) {
        NSLog(@"error find by %@",stockId);
        return nil;
    }
    NSString *criteria = [NSString stringWithFormat:@"where stock_id='%@'",stockId];
    return (MyStockForceTrace *)[MyStockForceTrace findFirstByCriteria:criteria];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    NSLog(@"key:%@ not found",key);
}

-(void)dealloc{
    [stockId release];
    [f3 release];
    [f10 release];
    [f60 release];
    [fIn3 release];
    [fIn10 release];
    [fIn60 release];
    [fOut3 release];
    [fOut10 release];
    [fOut60 release];
    [turnover3 release];
    [turnover10 release];
    [turnover60 release];
    [turnoverMoney3 release];
    [turnoverMoney10 release];
    [turnoverMoney60 release];
    [fr3 release];
    [fr10 release];
    [fr60 release];
    [super dealloc];
}

@end
